package com.tanhua;

import com.arcsoft.face.EngineConfiguration;
import com.tanhua.face.FaceProperties;
import com.tanhua.face.FaceTemplate;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * Created with IntelliJ IDEA.
 *
 * @ClassName: FaceAutoConfiguration
 * @Author:王晨晗
 * @Description: 人脸识别装配类
 * @Date: 2021/12/28/16:37
 */
@EnableConfigurationProperties({FaceProperties.class})
@ConditionalOnClass(EngineConfiguration.class)
public class FaceAutoConfiguration {
    @Bean
    public FaceTemplate faceTemplate(FaceProperties faceProperties){
        return new FaceTemplate(faceProperties);
    }
}
